<%unless @hotlist.empty?%>
<% cateid=-1 %>
<table width="490" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<% for hotlist in @hotlist %>
		<% unless cateid==hotlist.category %>
			<% cateid=hotlist.category %>
			<% unless cateid==0 %>
			<tr>
				<td height="20"></td>
			</tr>
			<%else %>
			</ol>
			</td>
			</tr>
			<%end %>
			<tr>
				<td class="listt" height="20">
					<strong>
					<% if cateid==0 %> 高薪职位榜 
					<% elsif cateid==6 %> 城市样本数量 
					<% elsif cateid==5 %> 公司样本数量 
					<% elsif cateid==4 %> 最热门的职位
					<% elsif cateid==3 %> 最受关注的公司 
					<% elsif cateid==2 %> 最受关注的报告 
					<% else %>最受关注的样本<% end %>
					</strong>
				</td>
			</tr>
			<tr>
				<td bgcolor="#999999"></td>
			</tr>
			<tr>
				<td height="10"></td>
			</tr>
			<tr>
				<td>
				<ol>
		<% end %>
		<% if cateid==0 %>
		<li><%= link_to h(hotlist.obj_title), :controller=>"report", :action=>"viewreport", :id=>hotlist.obj_id %>
		<span class="smagray">&nbsp;&nbsp;该职位的过往的月均收入&nbsp;</span><%=number_with_delimiter(hotlist.value)%></li>
		<p></p>
		<% elsif cateid==6 %>
		<li><%= link_to h(hotlist.obj_title), :controller=>"search", :action=>"listcity", :id=>hotlist.obj_id %>
		<span class="smagray">&nbsp;&nbsp;该城市已经拥有&nbsp;</span><%=number_with_delimiter(hotlist.value)%><span class="smagray">&nbsp;个样本</span></li>
		<p></p>
		<% elsif cateid==5 %>
		<li><%= link_to h(hotlist.obj_title), :controller=>"view", :action=>"viewcompany", :id=>hotlist.obj_id %>
		<span class="smagray">&nbsp;&nbsp;已经有&nbsp;</span><%=number_with_delimiter(hotlist.value)%><span class="smagray">&nbsp;个该公司的样本</span></li>
		<p></p>
		<% elsif cateid==4 %>
		<li><%= link_to h(hotlist.obj_title), :controller=>"search", :action=>"listposition", :id=>hotlist.obj_id %>
		<span class="smagray">&nbsp;&nbsp;拥有&nbsp;</span><%=number_with_delimiter(hotlist.value)%><span class="smagray">&nbsp;个该职位的样本</span></li>
		<p></p>
		<% elsif cateid==3 %>
		<li><%= link_to h(hotlist.obj_title), :controller=>"view", :action=>"viewcompany", :id=>hotlist.obj_id %>
		<span class="smagray">&nbsp;&nbsp;人气度：</span><%=number_with_delimiter(hotlist.value)%>&nbsp;&nbsp;&nbsp;<span class="smagray">关注度:</span><%=showtrend(hotlist.trend)%></li>
		<p></p>
		<% elsif cateid==2 %>
		<li><%= link_to h(hotlist.obj_title), :controller=>"report", :action=>"viewreport", :id=>hotlist.obj_id %>
		<span class="smagray">&nbsp;&nbsp;人气度：</span><%=number_with_delimiter(hotlist.value)%>&nbsp;&nbsp;&nbsp;<span class="smagray">关注度:</span><%=showtrend(hotlist.trend)%></li>
		<p></p>
		<% else %>
		<li><%= link_to h(hotlist.obj_title), :controller=>"report", :action=>"viewincumbent", :id=>hotlist.obj_id %>
		<span class="smagray">&nbsp;&nbsp;人气度：</span><%=number_with_delimiter(hotlist.value)%>&nbsp;&nbsp;&nbsp;<span class="smagray">关注度:</span><%=showtrend(hotlist.trend)%></li>
		<p></p>
		<% end %>
	<% end %>
</table>
<%end %>
